package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 回访表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "visit")
public class Visit implements Serializable {
    public static final String COL_VISIT_NO = "visit_no";
    public static final String COL_VISIT_METHOD = "visit_method";
    public static final String COL_USER_ID = "user_id";
    public static final String COL_VISIT_TIME = "visit_time";
    public static final String COL_CUSTOMER_ID = "customer_id";
    public static final String COL_VISIT_SATISFACTION = "visit_satisfaction";
    public static final String COL_VISIT_FEEDBACK = "visit_feedback";
    public static final String COL_CREATE_USER_ID = "create_user_id";
    public static final String COL_CONTRACT_ID = "contract_id";
    /**
     * 回访编号
     */
    @TableId(value = "visit_no", type = IdType.INPUT)
    private Integer visitNo;

    /**
     * 回访形式(1,见面 2,电话 3,微信 4,短信 5,邮件)
     */
    @TableField(value = "visit_method")
    private Integer visitMethod;

    /**
     * 回访人
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 创建时间
     */
    @TableField(value = "visit_time")
    private Date visitTime;

    /**
     * 客户编号
     */
    @TableField(value = "customer_id")
    private Integer customerId;

    /**
     * 满意度(1,满意 2,一般 3,不满意 4,很满意 5,很不满意)
     */
    @TableField(value = "visit_satisfaction")
    private Integer visitSatisfaction;

    /**
     * 客户反馈
     */
    @TableField(value = "visit_feedback")
    private String visitFeedback;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private Integer createUserId;

    /**
     * 合同编号
     */
    @TableField(value = "contract_id")
    private Integer contractId;

    private static final long serialVersionUID = 1L;
}